package com.example.gty.utils;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ResultVO对象",description = "封装接口返回给前端的数据")
public class ResultVo<E> {

    //响应前端状态码
    @ApiModelProperty(value = "响应状态码",dataType = "int")
    private int code;
    //
    @ApiModelProperty("响应提示信息")
    private String message;

    //响应前端数据
    @ApiModelProperty("响应数据")
    private E data;
}
